package cn.b.sky.mes.andon.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.b.sky.mes.andon.dao.AndonRunDao;
import cn.b.sky.mes.andon.model.AndonRun;
import cn.b.sky.mes.andon.model.condition.AndonRunCondition;
import cn.b.sky.mes.andon.service.AndonRunService;

@Service("andonRunService")
public class AndonRunServiceImpl implements AndonRunService {
  
  @Resource
  AndonRunDao andonRunDao;

  @Override
  public List<AndonRun> selectAndonRunListByCondition(AndonRunCondition condition) {
    if (null!=condition) {
      return andonRunDao.selectAndonRunListByCondition(condition);
    }
    return null;
  }

  @Override
  public int selectandonRunListCountByCondition(AndonRunCondition condition) {
    if (null!=condition) {
      return andonRunDao.selectandonRunListCountByCondition(condition);
    }
    return 0;
  }

}
